package com.situ.hotel.entity;

import java.util.Date;

/**
 * 实体类是描述一个事物，就是和数据库中的一个表对应
 *
 */
public class Emp extends Object{
	// `id` int(11) NOT NULL AUTO_INCREMENT,
	// `code` varchar(10) DEFAULT NULL COMMENT '员工编号',
	// `name` varchar(10) DEFAULT NULL COMMENT '运功名字',
	// `birthday` date DEFAULT NULL COMMENT '出生日期',
	// `address` varchar(50) DEFAULT NULL COMMENT '地址',
	// `phone` varchar(10) DEFAULT NULL COMMENT '联系电话',
	// `password` varchar(10) DEFAULT NULL COMMENT '密码',
	// `dept_code` varchar(10) DEFAULT NULL COMMENT '关联到dept表的外键',
	private Integer id;
	private String code;
	private String name;
	private Date birthday;
	private String address;
	private String phone;
	private String password;
	private String deptCode;

	public Emp() {
		super();
	}
	
	public Emp(String code, String name, Date birthday, String address, String phone, String password,
			String deptCode) {
		super();
		this.code = code;
		this.name = name;
		this.birthday = birthday;
		this.address = address;
		this.phone = phone;
		this.password = password;
		this.deptCode = deptCode;
	}

	public Emp(Integer id, String code, String name, Date birthday, String address, String phone, String password,
			String deptCode) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.birthday = birthday;
		this.address = address;
		this.phone = phone;
		this.password = password;
		this.deptCode = deptCode;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	@Override
	public String toString() {
		return "Emp [id=" + id + ", code=" + code + ", name=" + name + ", birthday=" + birthday + ", address=" + address
				+ ", phone=" + phone + ", password=" + password + ", deptCode=" + deptCode + "]";
	}

}
